API: gdk: Remove ability to render window contents
authorBenjamin Otte <otte@redhat.com>
Sun, 20 Nov 2016 10:47:32 +0000 (11:47 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 20 Nov 2016 10:47:44 +0000 (11:47 +0100)
commite62a4d8eea55b08379cd0b0fc60e9ea95dce7b5e
tree3c5f3d632d27ce507ae7916fff0781e4d3f27394
parent84918c7e6f31339eccd3b27587ecfbd01a85f431
API: gdk: Remove ability to render window contents

The functions gdk_pixbuf_get_from_window() and
gdk_cairo_set_source_window() are unreliable and depend on the windowing
system (they work great on X11 and Win32, less so on Quartz and Wayland).

With the switch to new drawing API and OpenGL, we can definitely no
longer support a generic way to snapshot windows.

People should either write windowsystem-specific code or draw their
widgets directly - like with gtk_widget_draw() - if they need to get a
rendering.
docs/reference/gdk/gdk4-sections.txt
gdk/gdkcairo.c
gdk/gdkcairo.h
gdk/gdkpixbuf-drawable.c
gdk/gdkpixbuf.h
gdk/gdkwindow.c